/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import com.qinyetech.springstage.core.entity.AbstractEntity;

import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.experimental.Tolerate;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * ClassName: DishesMenuBranch <br/>
 * Function: 菜谱适用门店 <br/>
 * date: 2018-11-26 14:37:27 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="dishes_menu_branchs")
public class DishesMenuBranch extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 菜谱id 
    @Column(name="menu_id")
	private Long menuId = null;

	// 分店id 
    @Column(name="branch_id")
	private Long branchId = null;

	// 分店区域(分店区域不能更改) 
    @Column(name="district_id")
	private Long districtId = null;

    //分店名称
    @Transient
	private String label = "";


    @Tolerate
	public DishesMenuBranch() {
		
	}
    @Tolerate
	public DishesMenuBranch(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取菜谱id
	 */
	public Long getMenuId() {
		return this.menuId;
	}

    /**
     * 设置菜谱id
     */
	public DishesMenuBranch setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}

	/**
	 * 获取分店id
	 */
	public Long getBranchId() {
		return this.branchId;
	}

    /**
     * 设置分店id
     */
	public DishesMenuBranch setBranchId(Long branchId) {
		this.branchId = branchId;
		return this;
	}

	/**
	 * 获取分店区域(分店区域不能更改)
	 */
	public Long getDistrictId() {
		return this.districtId;
	}

    /**
     * 设置分店区域(分店区域不能更改)
     */
	public DishesMenuBranch setDistrictId(Long districtId) {
		this.districtId = districtId;
		return this;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
}
